#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(){
	char*str;

	str = (char*) calloc(20,sizeof(char));
	
	printf("Nhap xau: ");
	gets(str);
	//// doi xau ngu oc 
	char tmp[20];
	int j = 0;
	int i = strlen(str) - 1;
	while(i >= 0){
		tmp[j] = str[i];
		i--;
		j++;
	}
	tmp[j] = '\0';
	
	puts("");
	puts(tmp);
	getch(); 
}
